/*
 * @Author: wwssaabb
 * @Date: 2021-08-26 16:23:25
 * @LastEditTime: 2021-08-26 16:23:25
 * @FilePath: \hospitable-rental-for-react\src\redux\ations.js
 */

//定义的常量
import { 
  LOGIN,
  LOGOUT,
  RECORD_ADD,
  RECORD_CLS
 } from './constant'

//用户登录时管理用户数据
export const setUserData=(data)=>({type:LOGIN,data})

//用户登出
export const resetUserData=()=>({type:LOGOUT})

//新增看房记录
export const addRecord=(data)=>({type:RECORD_ADD,data})

//清除看房记录
export const removeRecord=()=>({type:RECORD_CLS})
